interface BidResponse {
  id: string; // 竞价请求的id
  bidid: string; // dsp自己的竞价id
  cur: string; // 币种
  seatbid: SeatBid[];
}

interface SeatBid {
  bid: Bid[];
}

interface Bid {
  id: string; // DSP对该次出价分配的ID
  impid: string; // BidRequest中的impid
  nurl: string; // win notice url
  price: number; // DSP出价，单位是分/千次曝光，即CPM
  crid: string; // 系统的创意ID
  pvm: string[]; // 曝光监测URL
  clickm: string[]; // 点击监测URL
  ext: BidExt;
  eventTracker: EventTracker[];
  interact_mode: number;
  need_coordinate: number;
}

interface BidExt {
  macros: Macro[];
  style: number;
  title: string;
  isFullScreen: number;
  linkUrl: string;
  adm: AdMaterial[];
  advertiser: Advertiser;
}

interface Macro {
  macro: string;
  value: string;
  expression: number[];
}

interface AdMaterial {
  url: string;
  type: number;
  w: number;
  h: number;
}

interface Advertiser {
  id: string;
  industry: string;
  subIndustry: string;
}

interface EventTracker {
  type: number;
  url: string;
}

export default BidResponse